/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Domainservice.Model
{

    /// <summary>
    ///  updateMonitor
    /// </summary>
    public class UpdateMonitor
    {

        ///<summary>
        /// 连续几次触发报警
        ///Required:true
        ///</summary>
        [Required]
        public int AlarmLimit{ get; set; }
        ///<summary>
        /// 监控项ID
        ///Required:true
        ///</summary>
        [Required]
        public int Id{ get; set; }
        ///<summary>
        /// 备用地址1
        ///Required:true
        ///</summary>
        [Required]
        public string IpBackup01{ get; set; }
        ///<summary>
        /// 备用地址2
        ///Required:true
        ///</summary>
        [Required]
        public string IpBackup02{ get; set; }
        ///<summary>
        /// 备用地址列表，存在该参数时，可不填写参数备用地址1、备用地址2
        ///</summary>
        public List<string> BackupAddressList{ get; set; }
        ///<summary>
        /// 监控状况 开启监控:2，暂停监控:4
        ///Required:true
        ///</summary>
        [Required]
        public int MonitorEnable{ get; set; }
        ///<summary>
        /// 监控频率，单位秒
        ///Required:true
        ///</summary>
        [Required]
        public int MonitorFreq{ get; set; }
        ///<summary>
        /// 监控端口
        ///Required:true
        ///</summary>
        [Required]
        public int MonitorPort{ get; set; }
        ///<summary>
        /// 不做任何修改0，强制暂停解析记录1，自动切换到备用地址2
        ///Required:true
        ///</summary>
        [Required]
        public int MonitorRule{ get; set; }
        ///<summary>
        /// 监控路径
        ///Required:true
        ///</summary>
        [Required]
        public string MonitorUri{ get; set; }
        ///<summary>
        /// 不发送邮件:0， 发送邮件:1
        ///Required:true
        ///</summary>
        [Required]
        public int NotifyEmailEnable{ get; set; }
        ///<summary>
        /// 不发送通知栏:0， 发送通知栏:1
        ///Required:true
        ///</summary>
        [Required]
        public int NotifyMsgBarEnable{ get; set; }
        ///<summary>
        /// 不发送短信:0， 发送短信:1
        ///</summary>
        public int? NotifySmsEnable{ get; set; }
        ///<summary>
        /// https 0，https 1
        ///Required:true
        ///</summary>
        [Required]
        public int Protocol{ get; set; }
        ///<summary>
        /// 0自动恢复 1手动恢复
        ///Required:true
        ///</summary>
        [Required]
        public int StopRecoverRule{ get; set; }
        ///<summary>
        /// 0自动恢复至主host 1手动恢复至主host
        ///Required:true
        ///</summary>
        [Required]
        public int SwitchRecoverRule{ get; set; }
        ///<summary>
        /// 探测请求携带自定义头域及其域值列表
        ///</summary>
        public List<HttpHeader> RequestHeaders{ get; set; }
        ///<summary>
        /// 探测响应Body体中包含的字符串
        ///</summary>
        public string ResponseBodyMatch{ get; set; }
        ///<summary>
        /// 探测响应码范围列表
        ///</summary>
        public List<HttpResponseCodeRange> ResponseCodeRanges{ get; set; }
    }
}
